<template>
    <el-dialog :close-on-click-modal="false" :visible="viewFlag" class="zdy-dialog" width="650px" :title="$t('view')" :lock-scroll="false" :before-close="handleCloseDialog">
        <el-form :model="form" class="pop-form-box" ref="otaglForm">
            <el-row :gutter="20">
                <el-col :span="12">
                    <!--姓名-->
                    <el-form-item :label="$t('name')" prop="version">
                        <el-input v-model="form.version" clearable></el-input>
                    </el-form-item>
                </el-col>
                <el-col :span="12">
                    <!--性别-->
                    <el-form-item :label="$t('Gender')" prop="version">
                        <el-input v-model="form.sbmc" clearable></el-input>
                    </el-form-item>
                </el-col>
                <el-col :span="12">
                    <!--手机号码-->
                    <el-form-item :label="$t('Mobile phone number')" prop="version">
                        <el-input v-model="form.sbmc" clearable></el-input>
                    </el-form-item>
                </el-col>
                <el-col :span="12">
                    <!--卡号-->
                    <el-form-item :label="$t('Card number')" prop="version">
                        <el-input v-model="form.sblx" clearable></el-input>
                    </el-form-item>
                </el-col>
                <el-col :span="12">
                    <!--证件号码-->
                    <el-form-item :label="$t('Document number')" prop="version">
                        <el-input v-model="form.sbmc" clearable></el-input>
                    </el-form-item>
                </el-col>
                <el-col :span="24">
                    <!--组织-->
                    <el-form-item :label="$t('organization')" prop="version">
                        <el-input v-model="form.sbmc" clearable></el-input>
                    </el-form-item>
                </el-col>
            </el-row>

            <div class="footBtnBox">
                <el-button size="small" type="handle" @click="handleCloseDialog">{{this.i18n.t('Cancel')}}</el-button>
                <el-button size="small" type="primary" @click="handleCloseDialog">{{this.i18n.t('save')}}</el-button>
            </div>
        </el-form>
    </el-dialog>
</template>

<script>
    export default {
        name: "views",
        props: {
            viewFlag: {
                type: Boolean,
                default: false
            }
        },
        data(){
            return{
                value: 0,
                saveDisabled:false,
                form:{
                    sbmc:''
                }
            }
        },
        methods:{
            /**
             * @description  关闭弹窗事件
             * @return not
             * @author xiongyi 2022-06-29 16:48:08
             **/
            handleCloseDialog() {
                this.$emit('update:viewFlag', false);
                this.$emit('update:editTableRow', null);
                if (this.fileName) {
                    this.fileName = "";
                    this.$refs.upload.clearFiles()
                }
            }
        }
    }
</script>

<style scoped>

</style>